<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>上传头像校验规则</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="/js/layui/css/layui.css" media="all">
</head>
<body style="background-color: #f2f2f2;">
    <div class="layui-row">
        <div class="layui-col-xs6" style="margin-top: 2%;margin-left: 2%;">
            文件格式：<span style="color: red;"><b>.</b>jpg</span>、<span style="color: red;"><b>.</b>jpeg</span>、<span style="color: red;"><b>.</b>png</span>
        </div>
    </div>
    <div class="layui-row">
        <div class="layui-col-xs6" style="margin-top: 2%;margin-left: 2%;">
            文件大小：<span style="color: red;">不超过1MB</span>
        </div>
    </div>

    <!--<div class="layui-row">
        <div class="layui-col-xs6" style="margin-top: 2%;margin-left: 2%;">
            照片底色：<span style="color: red;">白色</span>
        </div>
    </div>
    <div class="layui-row" style="height: 80%;">
        <div class="layui-col-xs6" style="width: 48%;margin-top: 2%;margin-left: 2%;text-align: center;">
            <div style="color: green;">
                正确示例
            </div>
            <div class="layui-row">
                <div class="layui-col-xs6" style="width: 96%;margin-top: 2%;margin-left: 2%;text-align: center;">
                    &lt;!&ndash;<img src="/admin/img/sl_white.jpg" style="height: 180px;width: 180px;"/>&ndash;&gt;
                </div>
            </div>
        </div>
        <div class="layui-col-xs6" style="width: 48%;margin-top: 2%;margin-left: 2%;text-align: center;">
            <div style="color: red;">
                错误示例
            </div>
            <div class="layui-row">
                <div class="layui-col-xs6" style="width: 96%;height:100%;margin-top: 2%;margin-left: 2%;text-align: center;">
                    &lt;!&ndash;<img src="/admin/img/sl_blue.jpg" style="height: 180px;width: 180px;"/>&ndash;&gt;
                </div>
            </div>
        </div>
    </div>-->
    <div class="layui-row" style="margin-top: 6%;text-align: center;">
        <button type="button" class="layui-btn" id="start_upload">我已阅读，开始上传</button>
    </div>

<script src="/js/layui/layui.js"></script>
<script src="/js/layui/layui.all.js"></script>
<script src="/admin/js/token.js"></script>


<script>
    var $ = layui.jquery;
    $('#start_upload').on('click',function () {
        layui.data("test", {key: 'flag',value: true});
        var index = parent.layer.getFrameIndex(window.name);
        parent.layer.close(index);//关闭弹出层
        window.parent.$("#test").click();
    })
</script>
</body>
</html>